package com.bw.parkingspace_module.parkingedit.adapter

import android.widget.ImageView
import com.bw.parkingspace_module.R
import com.bw.parkingspace_module.parkingedit.entity.ImageEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.kf.lib_imageload.imageutils.LOAD_TYPE_TILE
import com.kf.lib_imageload.imageutils.LoadImageUtils

class ParkingImageAdapter : BaseQuickAdapter<ImageEntity, BaseViewHolder>(R.layout.item_image) {
    override fun convert(holder: BaseViewHolder, item: ImageEntity) {
        var image = holder.getView<ImageView>(R.id.item_image)
        LoadImageUtils().loadImage(LOAD_TYPE_TILE, image, item.imgPath)
    }
}